// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   ListNavigation.java

package com.hfstu.ifs.model;

import com.hfstu.framework.util.StringUtil;
import org.apache.commons.lang3.builder.ToStringBuilder;

// Referenced classes of package com.hfstu.ifs.model:
//			Navigation, FuncDef, NavControl

public class ListNavigation extends Navigation
{

	private String icon;
	private String iconHover;
	private Integer hide;
	private Integer orderIndex;
	private NavControl navControl;
	private String description;

	public ListNavigation()
	{
	}

	public String getDescription()
	{
		return description;
	}

	public void setDescription(String description)
	{
		this.description = description;
	}

	public String getIconHover()
	{
		return iconHover;
	}

	public void setIconHover(String iconHover)
	{
		this.iconHover = iconHover;
	}

	public String getIcon()
	{
		return icon;
	}

	public void setIcon(String icon)
	{
		this.icon = icon;
	}

	public Integer getOrderIndex()
	{
		return orderIndex;
	}

	public void setOrderIndex(Integer orderIndex)
	{
		this.orderIndex = orderIndex;
	}

	public Integer getHide()
	{
		return hide;
	}

	public void setHide(Integer hide)
	{
		this.hide = hide;
	}

	public NavControl getNavControl()
	{
		return navControl;
	}

	public void setNavControl(NavControl navControl)
	{
		this.navControl = navControl;
	}

	public String toString()
	{
		return ToStringBuilder.reflectionToString(this);
	}

	public String toJson()
	{
		StringBuilder json = new StringBuilder();
		json.append("{");
		json.append("'id':").append("'").append(super.getId()).append("',");
		json.append("'code':").append("'").append(super.getCode()).append("',");
		json.append("'name':").append("'").append(super.getName()).append("',");
		json.append("'funcBindTag':").append("'").append(super.getFuncBindTag()).append("',");
		json.append("'funcDefId':").append("'").append(super.getFuncDef() != null ? super.getFuncDef().getId() : "").append("',");
		json.append("'funcDefName':").append("'").append(super.getFuncDef() != null ? super.getFuncDef().getName() : "").append("',");
		json.append("'url':").append("'").append(StringUtil.clean(super.getUrl())).append("',");
		json.append("'target':").append("'").append(super.getTarget()).append("',");
		json.append("'description':").append("'").append(getDescription()).append("',");
		json.append("'icon':").append("'").append(getIcon()).append("',");
		json.append("'iconHover':").append("'").append(getIconHover()).append("',");
		json.append("'orderIndex':").append("").append(getOrderIndex()).append(",");
		json.append("'navControlId':").append("'").append(navControl != null ? navControl.getId() : "").append("'");
		json.append("}");
		return json.toString();
	}
}
